﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Antix.Data;
using Antix.Data.Objects;

namespace Antix.ObjectsToDatabase.Test.CatalogueClasses
{
    [DataTable("PersonAddress")]
    public class PersonAddress : Base.Address
    {
        /// <summary>
        /// <para>Person whos address this is</para>
        /// <para>When a person is deleted, so are all their addresses</para>
        /// </summary>
        [DataColumn(Name = "Person", DeleteAction = DeleteActionEnum.CascadeFrom)]
        protected Person _Person;
    }
}